body {
    margin: 0 0 10px 0;
    background-color : #fff;
}

p.applogo {
    font-size: 20pt;
    display: inline-block;
    float: left;
    height: 40px;
    padding: 0 20px 0 10px;
    margin: 5px 0;
    vertical-align: middle;
}










/* Top Menu */
div#menu_top {
    position: relative;
	padding: 10px;
	background-color: #eee;
    height: 40px;
    display: none;
}
div#menu_top ul, div#menu_top li {
	display: inline;
    position: relative;
}

a.menu_button {
	display: block;
    float: left;
	padding: 20px 10px 5px 10px;
	text-decoration: none;
	color: #333;
}
a.menu_button:hover {
	text-decoration: underline;
	color: #111;
}

#welcome_msg {
	display: inline-block;
    float: left;
    padding: 20px 5px 5px 80px;
    margin: 0;
    color: #000;
}










/* Background for login / register form */
div#modal_panel_bg {
    background: black;
    /*opacity: 0.75;
    filter: alpha(opacity=75);
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 10;
    display: none;
}










/* Login / Register Form */
div.modal_container {
    position: absolute;
    width: 100%;
    z-index: 11;
    text-align: center;
}
div.modal {
    background: #eee;
    padding: 10px;
    border: 2px solid #222;
    display: none;
}

#reg_container,#reg_success_container,#dereg_success_container,#cancel_reg_container,#menu_container{
    top: 35px;
}
#reg_div,#reg_success_div,#dereg_success_div,#cancel_reg_div,#menu_div{
    width: 500px;
}

#menu_div a{
	dislay: block;
    font-size: 30pt;
    line-height: 120%;
}
#reg_success_div,#dereg_success_div{
	dislay: block;
    font-size: 30pt;
    line-height: 120%;
}

.modal a{
	background-color:#bbbbbb;
	margin:5px;
	display:block;
	border:3px;
	border-color:#000000;
	border-style:solid;
}







/* Modal forms specific styles */
#reg_div td,#cancel_reg_div td {
	font-size: 11pt;
    padding: 3px 10px;
}
#reg_div td.left,#cancel_reg_div td.left {
    text-align: right;
    vertical-align: top;
    line-height: 220%;
    width: 120px;
    white-space: nowrap;
}
#reg_div td.right,#cancel_reg_div td.right, #login_div td.right {
    text-align: left;
    padding-right: 30px;
}
#reg_div th,#cancel_reg_div th, #login_div th {
	font-size: 25pt;
    line-height: 170%;
    text-align: center;
}
#reg_div input.field,#cancel_reg_div input.field, #login_form input.field {
    width: 100%;
    font-size: 12pt;
}
#reg_div input.submit,#cancel_reg_div input.submit, #login_form input.submit {
    width: 120px;
    font-size: 12pt;
}
#reg_div .error {
    display: block;
    padding: 5px;
}
.button_bar {
    padding: 20px 5px;
    text-align: center;
}










/* System error notifications */
#error_alert {
    position: absolute;
    top: 0px;
    padding: 0;
    width: 100%;
    z-index: 999;
	font-size:14pt;
    display: none;
}
#problem_error, #scoreboard_error {
    position: relative;
    top: 0;
    padding: 0;
    width: 100%;
    z-index: 10;
    display: none;
}
.alert_msg {
    border: 1 solid #f74;
    padding: 5px 20px;
}
.error {
    background-color: #fd5;
}
.fatal {
    background-color: red;
    color: white;
}










/* Main */
.main_outer {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.main_left {
    position: absolute;
    width: 250px;
    left: 0px;
}
.main_right {
    position: absolute;
    width: 200px;
    right: 0px;
}
.main_middle {
    position: relative;
    margin: 0 200px 0 250px;
    padding: 10px;
}

#main_outer {
    display: none;
}
#error_center {
    padding-top: 10px;
    min-height: 40px;
}
#error_center div {
    text-align: center;
    padding: 5px;
}








/* Problem List */
#problems {
    text-align: center;
    margin: 5px 10px;
}

.select {
    background-color: black !important;
}
.select a {
    color: #fff !important;
}
.select p.list_id {
    color: #ddd !important;
}

#problems div {
    text-align: left;
    margin: 5px 0px;
	padding: 5px 10px;
}
#problems a {
    display: inline;
	color: #000;
	text-decoration: none;
    text-overflow: ellipsis;
    overflow: hidden;
}
#problems a:hover {
	color: #000;
    text-decoration: underline;
}

/* The id in front of problem title */
#problems p.list_id {
    color: #555;
    font-size: 9pt;
    display: inline;
}










/* Scoreboard */
#scoreboard {
    position: relative;
    width: 100%;
    background-color: #eee;
    display: inline;
    float: right;
}
.scoreboard_ranklist {
    position: absolute;
    top: 0;
}
.scoreboard_rank {
	display:inline;
	margin-right:5px;
    color: red;
    font: 12pt "Arial Black";
}
.scoreboard_user {
	display:inline;
	width:100px;
    font: 11pt;
}
.scoreboard_penalty, .scoreboard_point {
	margin-left:8px;
	display:inline;
    font: 10pt;
}








/* Problem Description */
#problem_description {
    display: block;
    float: left;
    width: 100%;
}

#description {
    position: relative;
    top 0;
    display: block;
    width: 100%;
    overflow: auto;
}










/* Problem Description Option Buttons */
#buttons {
    display: inline-block;
    min-width: 300px;
    border-top: 5px solid #000;
    margin: 20px 0;
}
#buttons ul {
    padding: 0;
}
#buttons li {
    display: block;
    padding: 0;
    margin: 0;
}

.answer_btn {
    display: inline-block;
    padding: 6px 15px;
    margin: 5px 0;
	text-decoration: none;
	color: #000;
    text-overflow: ellipsis;
    overflow: hidden;
    border: 1px solid #fff;
}
.answer_btn:hover {
    text-decoration: underline;
}

#buttons li p.list_id {
    display: inline;
    font-weight: normal;
    font-size: 11pt;
}
.ans_selected a {
    text-decoration: none;
    background-color: #fd5;
    border: 1px solid #ec4;
}
.ans_selected a:hover {
    text-decoration: underline;
}

#problem_msg {
    padding: 5px 10px;
    visibility: hidden;
}